<div class="table-responsive">
        <table class="table table-bordered table-hover table-a">
            <thead>
                <tr>
                                    <td style="width: 1px;" class="text-center">
                                            <input type="checkbox" onclick="$('input[name*=\'selected\']').prop('checked', this.checked);">
                                        </td>
                    <th width = "3%" class = "align-center">
                        <a href="javascript:sort('user_id');">ID</a>
                    </th>
                    <th class="align-center">
                        <a href="javascript:sort('username');">会员昵称</a>
                    </th>

                    <th class="align-center">
                        <a href="javascript:sort('mobile');">手机号码</a>
                    </th>
                    <th class="align-center">
                        <a href="javascript:sort('city');">所在地区</a>
                    </th>
                    <th class="align-center">
                        <a href="javascript:sort('is_lock');">开启账户</a>
                    </th>
                    <th class="align-center">
                        <a href="javascript:sort('count(q.id)');">总提问数</a>
                    </th>

                    <th width = "8%" class="align-center">
                        <a href="javascript:sort('reg_time');">注册日期</a>
                    </th>
                    <th width = "10%" class="align-center">操作</th>
                </tr>
            </thead>
            <tbody>
            <volist name="userList" id="list">
                <tr>
                                      <td class="text-center">
                                            <input type="checkbox" name="selected[]" value="{$list['user_id']}">

                                        </td>
                    <td class="text-center">{$list.user_id}</td>
                    <td class="text-left">{$list.username}</td>
                    <td class="text-left">{$list.mobile}
                <if condition="($list['mobile_validated'] eq 0) AND ($list['mobile'])">
                    (未验证)
                </if>
                </td>
                <td class="text-right">{$list.p_name}/{$list.c_name}</td>
                    <td align="center">
                        <img width="20" height="20" src="__PUBLIC__/images/<if condition='$list[is_lock] eq 0'>yes.png<else />cancel.png</if>" onclick="changeTableVal('users', 'user_id', '{$list.user_id}', 'is_lock', this)" />
                    </td>
                    <td class="text-left">{$list.count}</td>
                <td class="text-left">{$list.reg_time|date='Y-m-d H:i',###}</td>
                <td>
                    <a href="{:U('Admin/User/detail',array('id'=>$list['user_id']))}" data-toggle="tooltip" title="编辑" class="btn btn-info" data-original-title="编辑用户"><i class="fa fa-pencil"></i></a>

                    <a href="{:U('Admin/User/log',array('id'=>$list['user_id']))}" data-toggle="tooltip" title="账户资金记录" class="btn btn-info" data-original-title="账户"><i class="glyphicon glyphicon-yen"></i></a>
                    <a href="{:U('Admin/User/delete',array('id'=>$list['user_id']))}" id="button-delete6" data-toggle="tooltip" title="删除" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                </td>
                </tr>
            </volist>
            </tbody>
        </table>
    </div>
</form>
<div class="row">
    <div class="col-sm-3 text-left"></div>
    <div class="col-sm-9 text-right">{$page}</div>
</div>
<script>
    $(".pagination  a").click(function () {
        var page = $(this).data('p');
        ajaxGetTable('search-form2', page);
    });
</script>
